dhcp-server server
This command configures the DHCP Servers table, which defines DHCP servers.
Syntax
(config-network)# dhcp-server server <Index> (server-<Index>)#
|
Command |
Description |
|---|---|
|
Index |
Defines the table row index. |
|
boot-file-name |
Defines the name of the boot file image for the DHCP client. |
|
dns-server-1 |
Defines the IP address (IPv4) of the primary DNS server that the DHCP server assigns to the DHCP client. |
|
dns-server-2 |
Defines the IP address (IPv4) of the secondary DNS server that the DHCP server assigns to the DHCP client. |
|
end-address |
Defines the ending IP address (IPv4 address in dotted-decimal format) of the IP address pool range used by the DHCP server to allocate addresses. |
|
expand-boot-file-name {no|yes} |
Enables the use of the placeholders in the boot file name, defined in 'boot-file-name'. |
|
lease-time |
Defines the duration (in minutes) of the lease time to a DHCP client for using an assigned IP address. |
|
name |
Defines the name of the DHCP server. |
|
netbios-node-type {broadcast|hybrid|mixed|peer-to-peer} |
Defines the NetBIOS (WINS) node type. |
|
netbios-server |
Defines the IP address (IPv4) of the NetBIOS WINS server that is available to a Microsoft DHCP client. |
|
network-if |
Assigns a network interface to the DHCP server. |
|
ntp-server-1 |
Defines the IP address (IPv4) of the primary NTP server that the DHCP server assigns to the DHCP client. |
|
ntp-server-2 |
Defines the IP address (IPv4) of the secondary NTP server that the DHCP server assigns to the DHCP client. |
|
override-router-address |
Defines the IP address (IPv4 in dotted-decimal notation) of the default router that the DHCP server assigns the DHCP client. |
|
sip-server |
Defines the IP address or DNS name of the SIP server that the DHCP server assigns the DHCP client. |
|
sip-server-type {dns|IP} |
Defines the type of SIP server address. |
|
start-address |
Defines the starting IP address (IPv4 address in dotted-decimal format) of the IP address pool range used by the DHCP server to allocate addresses. |
|
subnet-mask |
Defines the subnet mask (for IPv4 addresses) for the DHCP client. |
|
tftp-server-name |
Defines the IP address or name of the TFTP server that the DHCP server assigns to the DHCP client. |
|
time-offset |
Defines the Greenwich Mean Time (GMT) offset (in seconds) that the DHCP server assigns to the DHCP client. |
Command Mode
Privileged User
Example
This example configures a DHCP server with a pool of addresses for allocation from 10.13.1.0 to 10.13.1.5 and a lease time of an hour:
(config-network)# dhcp-server server (server-0)# start-address 10.13.1.0 (server-0)# end-address 10.13.1.5 (server-0)# lease-time 60